package com.imc.beans;

import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * ImcUserfriend entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "imc_userfriend", catalog = "imcdbserver")
public class ImcUserfriend implements java.io.Serializable {

	// Fields

	private ImcUserfriendId id;

	// Constructors

	/** default constructor */
	public ImcUserfriend() {
	}

	/** full constructor */
	public ImcUserfriend(ImcUserfriendId id) {
		this.id = id;
	}

	// Property accessors
	@EmbeddedId
	@AttributeOverrides({
			@AttributeOverride(name = "uid", column = @Column(name = "uid", nullable = false)),
			@AttributeOverride(name = "friend", column = @Column(name = "friend", nullable = false)),
			@AttributeOverride(name = "clusterOrgan", column = @Column(name = "cluster_organ", nullable = false)) })
	public ImcUserfriendId getId() {
		return this.id;
	}

	public void setId(ImcUserfriendId id) {
		this.id = id;
	}

}